<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDirectorStarInTable extends AbstractMigration
{
    public function up()
    {
        $this->table('entity')
            ->addColumn('director_star', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '导演是否关注'])
            ->save();
    }

    public function down()
    {
        $this->table('entity')->removeColumn('director_star')->save();
    }
}
